/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package reportcenter.util.custom.binding;

/**
 *
 * @author renan_luz
 */
   import org.springframework.richclient.form.binding.Binder;  
   import org.springframework.richclient.form.binding.Binding;  
   import org.springframework.binding.form.FormModel;  
     
   import javax.swing.*;  
   import java.util.Map;  
     
   public class FileBinder implements Binder  
   {  
       public Binding bind(FormModel formModel, String formPropertyPath, Map context)  
       {  
           return new FileBinding(formModel, formPropertyPath);  
       }  
     
       public Binding bind(JComponent control, FormModel formModel, String formPropertyPath, Map context)  
       {  
           throw new UnsupportedOperationException("The binder needs a custom created component and will take care of this" +  
                   " itself");  
       }  
   }  
